﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class DbProviderExtensions
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class DbProviderExtensions
   ">
    <meta name="generator" content="docfx 2.48.0.0">
    
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" href="../../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../../styles/docfx.css">
    <link rel="stylesheet" href="../../styles/main.css">
    <meta property="docfx:navrel" content="">
    <meta property="docfx:tocrel" content="toc.html">
    
    
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../../index.html">
                <img id="logo" class="svg" src="../../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions">
  
  
  <h1 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions" class="text-break">Class DbProviderExtensions
  </h1>
  <div class="markdown level0 summary"><p>DbProviderExtensions functions</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></div>
    <div class="level1"><span class="xref">DbProviderExtensions</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_">Object.Equals(Object)</a>
    </div>
    <div>
      <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_System_Object_">Object.Equals(Object, Object)</a>
    </div>
    <div>
      <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gethashcode#System_Object_GetHashCode">Object.GetHashCode()</a>
    </div>
    <div>
      <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gettype#System_Object_GetType">Object.GetType()</a>
    </div>
    <div>
      <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.memberwiseclone#System_Object_MemberwiseClone">Object.MemberwiseClone()</a>
    </div>
    <div>
      <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.referenceequals#System_Object_ReferenceEquals_System_Object_System_Object_">Object.ReferenceEquals(Object, Object)</a>
    </div>
    <div>
      <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.tostring#System_Object_ToString">Object.ToString()</a>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FluentDbTools.Extensions.DbProvider.html">FluentDbTools.Extensions.DbProvider</a></h6>
  <h6><strong>Assembly</strong>: FluentDbTools.Extensions.DbProvider.dll</h6>
  <h5 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class DbProviderExtensions</code></pre>
  </div>
  <h3 id="fields">Fields
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/DIPSAS/FluentDbTools/new/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/apiSpec/new?filename=FluentDbTools_Extensions_DbProvider_DbProviderExtensions_DbConnectionProviders.md&amp;value=---%0Auid%3A%20FluentDbTools.Extensions.DbProvider.DbProviderExtensions.DbConnectionProviders%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/DIPSAS/FluentDbTools/blob/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/src/FluentDbTools/Extensions/FluentDbTools.Extensions.DbProvider/DbProviderExtensions.cs/#L23">View Source</a>
  </span>
  <h4 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_DbConnectionProviders" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.DbConnectionProviders">DbConnectionProviders</h4>
  <div class="markdown level1 summary"><p>All registered IDbConnectionStringBuilders</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static readonly ConcurrentDictionary&lt;SupportedDatabaseTypes, IDbConnectionStringBuilder&gt; DbConnectionProviders</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.collections.concurrent.concurrentdictionary-2">ConcurrentDictionary</a>&lt;<a class="xref" href="FluentDbTools.Common.Abstractions.SupportedDatabaseTypes.html">SupportedDatabaseTypes</a>, <a class="xref" href="FluentDbTools.Common.Abstractions.IDbConnectionStringBuilder.html">IDbConnectionStringBuilder</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/DIPSAS/FluentDbTools/new/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/apiSpec/new?filename=FluentDbTools_Extensions_DbProvider_DbProviderExtensions_DbProviderFactories.md&amp;value=---%0Auid%3A%20FluentDbTools.Extensions.DbProvider.DbProviderExtensions.DbProviderFactories%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/DIPSAS/FluentDbTools/blob/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/src/FluentDbTools/Extensions/FluentDbTools.Extensions.DbProvider/DbProviderExtensions.cs/#L33">View Source</a>
  </span>
  <h4 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_DbProviderFactories" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.DbProviderFactories">DbProviderFactories</h4>
  <div class="markdown level1 summary"><p>All registered DbProviderFactories</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static readonly ConcurrentDictionary&lt;SupportedDatabaseTypes, DbProviderFactory&gt; DbProviderFactories</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.collections.concurrent.concurrentdictionary-2">ConcurrentDictionary</a>&lt;<a class="xref" href="FluentDbTools.Common.Abstractions.SupportedDatabaseTypes.html">SupportedDatabaseTypes</a>, <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.data.common.dbproviderfactory">DbProviderFactory</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/DIPSAS/FluentDbTools/new/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/apiSpec/new?filename=FluentDbTools_Extensions_DbProvider_DbProviderExtensions_ConfigureOracleTnsAdminPath_FluentDbTools_Common_Abstractions_IDbConfig_System_String_.md&amp;value=---%0Auid%3A%20FluentDbTools.Extensions.DbProvider.DbProviderExtensions.ConfigureOracleTnsAdminPath(FluentDbTools.Common.Abstractions.IDbConfig%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/DIPSAS/FluentDbTools/blob/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/src/FluentDbTools/Extensions/FluentDbTools.Extensions.DbProvider/DbProviderExtensions.cs/#L169">View Source</a>
  </span>
  <a id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_ConfigureOracleTnsAdminPath_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.ConfigureOracleTnsAdminPath*"></a>
  <h4 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_ConfigureOracleTnsAdminPath_FluentDbTools_Common_Abstractions_IDbConfig_System_String_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.ConfigureOracleTnsAdminPath(FluentDbTools.Common.Abstractions.IDbConfig,System.String)">ConfigureOracleTnsAdminPath(IDbConfig, String)</h4>
  <div class="markdown level1 summary"><p>To support TnsName lookup you can use this function to configure then path containing tnsnames.ora and sqlnet.ora
If path is null or empty, the function wil try to resolve the path containing tnsnames.ora from Environment::Path</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IDbConfig ConfigureOracleTnsAdminPath(this IDbConfig dbConfig, string path)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="FluentDbTools.Common.Abstractions.IDbConfig.html">IDbConfig</a></td>
        <td><span class="parametername">dbConfig</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
        <td><span class="parametername">path</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="FluentDbTools.Common.Abstractions.IDbConfig.html">IDbConfig</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/DIPSAS/FluentDbTools/new/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/apiSpec/new?filename=FluentDbTools_Extensions_DbProvider_DbProviderExtensions_ConfigureOracleTnsAdminPath_System_String_System_String_.md&amp;value=---%0Auid%3A%20FluentDbTools.Extensions.DbProvider.DbProviderExtensions.ConfigureOracleTnsAdminPath(System.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/DIPSAS/FluentDbTools/blob/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/src/FluentDbTools/Extensions/FluentDbTools.Extensions.DbProvider/DbProviderExtensions.cs/#L182">View Source</a>
  </span>
  <a id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_ConfigureOracleTnsAdminPath_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.ConfigureOracleTnsAdminPath*"></a>
  <h4 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_ConfigureOracleTnsAdminPath_System_String_System_String_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.ConfigureOracleTnsAdminPath(System.String,System.String)">ConfigureOracleTnsAdminPath(String, String)</h4>
  <div class="markdown level1 summary"><p>To support TnsName lookup you can use this function to configure then path containing tnsnames.ora and sqlnet.ora
If path is null or empty, the function wil try to resolve the path containing tnsnames.ora from environmentPath or Environment::Path</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string ConfigureOracleTnsAdminPath(string path, string environmentPath = null)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
        <td><span class="parametername">path</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
        <td><span class="parametername">environmentPath</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/DIPSAS/FluentDbTools/new/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/apiSpec/new?filename=FluentDbTools_Extensions_DbProvider_DbProviderExtensions_CreateDbConnection_FluentDbTools_Common_Abstractions_IDbConfig_System_Boolean_.md&amp;value=---%0Auid%3A%20FluentDbTools.Extensions.DbProvider.DbProviderExtensions.CreateDbConnection(FluentDbTools.Common.Abstractions.IDbConfig%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/DIPSAS/FluentDbTools/blob/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/src/FluentDbTools/Extensions/FluentDbTools.Extensions.DbProvider/DbProviderExtensions.cs/#L104">View Source</a>
  </span>
  <a id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_CreateDbConnection_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.CreateDbConnection*"></a>
  <h4 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_CreateDbConnection_FluentDbTools_Common_Abstractions_IDbConfig_System_Boolean_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.CreateDbConnection(FluentDbTools.Common.Abstractions.IDbConfig,System.Boolean)">CreateDbConnection(IDbConfig, Boolean)</h4>
  <div class="markdown level1 summary"><p>Return a new instance if IDbConnection created from dbConfig settings</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IDbConnection CreateDbConnection(this IDbConfig dbConfig, bool withAdminPrivileges = false)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="FluentDbTools.Common.Abstractions.IDbConfig.html">IDbConfig</a></td>
        <td><span class="parametername">dbConfig</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
        <td><span class="parametername">withAdminPrivileges</span></td>
        <td><p>If true, a IDbConnection with AdminConnectionString is created</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.data.idbconnection">IDbConnection</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/DIPSAS/FluentDbTools/new/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/apiSpec/new?filename=FluentDbTools_Extensions_DbProvider_DbProviderExtensions_CreateDbConnection_FluentDbTools_Common_Abstractions_SupportedDatabaseTypes_System_String_.md&amp;value=---%0Auid%3A%20FluentDbTools.Extensions.DbProvider.DbProviderExtensions.CreateDbConnection(FluentDbTools.Common.Abstractions.SupportedDatabaseTypes%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/DIPSAS/FluentDbTools/blob/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/src/FluentDbTools/Extensions/FluentDbTools.Extensions.DbProvider/DbProviderExtensions.cs/#L118">View Source</a>
  </span>
  <a id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_CreateDbConnection_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.CreateDbConnection*"></a>
  <h4 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_CreateDbConnection_FluentDbTools_Common_Abstractions_SupportedDatabaseTypes_System_String_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.CreateDbConnection(FluentDbTools.Common.Abstractions.SupportedDatabaseTypes,System.String)">CreateDbConnection(SupportedDatabaseTypes, String)</h4>
  <div class="markdown level1 summary"><p>Return a new instance if IDbConnection with ConnectionString configured from 'connectionString' parameter</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IDbConnection CreateDbConnection(this SupportedDatabaseTypes dbType, string connectionString)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="FluentDbTools.Common.Abstractions.SupportedDatabaseTypes.html">SupportedDatabaseTypes</a></td>
        <td><span class="parametername">dbType</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
        <td><span class="parametername">connectionString</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.data.idbconnection">IDbConnection</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/DIPSAS/FluentDbTools/new/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/apiSpec/new?filename=FluentDbTools_Extensions_DbProvider_DbProviderExtensions_GetAdminConnectionString_FluentDbTools_Common_Abstractions_IDbConfig_.md&amp;value=---%0Auid%3A%20FluentDbTools.Extensions.DbProvider.DbProviderExtensions.GetAdminConnectionString(FluentDbTools.Common.Abstractions.IDbConfig)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/DIPSAS/FluentDbTools/blob/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/src/FluentDbTools/Extensions/FluentDbTools.Extensions.DbProvider/DbProviderExtensions.cs/#L70">View Source</a>
  </span>
  <a id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_GetAdminConnectionString_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.GetAdminConnectionString*"></a>
  <h4 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_GetAdminConnectionString_FluentDbTools_Common_Abstractions_IDbConfig_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.GetAdminConnectionString(FluentDbTools.Common.Abstractions.IDbConfig)">GetAdminConnectionString(IDbConfig)</h4>
  <div class="markdown level1 summary"><p>Return dbConfig.AdminConnectionString if set, elsewhere AdminConnectionString is build from dbConfig settings</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string GetAdminConnectionString(this IDbConfig dbConfig)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="FluentDbTools.Common.Abstractions.IDbConfig.html">IDbConfig</a></td>
        <td><span class="parametername">dbConfig</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/DIPSAS/FluentDbTools/new/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/apiSpec/new?filename=FluentDbTools_Extensions_DbProvider_DbProviderExtensions_GetConnectionString_FluentDbTools_Common_Abstractions_IDbConfig_.md&amp;value=---%0Auid%3A%20FluentDbTools.Extensions.DbProvider.DbProviderExtensions.GetConnectionString(FluentDbTools.Common.Abstractions.IDbConfig)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/DIPSAS/FluentDbTools/blob/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/src/FluentDbTools/Extensions/FluentDbTools.Extensions.DbProvider/DbProviderExtensions.cs/#L52">View Source</a>
  </span>
  <a id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_GetConnectionString_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.GetConnectionString*"></a>
  <h4 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_GetConnectionString_FluentDbTools_Common_Abstractions_IDbConfig_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.GetConnectionString(FluentDbTools.Common.Abstractions.IDbConfig)">GetConnectionString(IDbConfig)</h4>
  <div class="markdown level1 summary"><p>Return dbConfig.ConnectionString if set, elsewhere ConnectionString is build from dbConfig settings</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string GetConnectionString(this IDbConfig dbConfig)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="FluentDbTools.Common.Abstractions.IDbConfig.html">IDbConfig</a></td>
        <td><span class="parametername">dbConfig</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/DIPSAS/FluentDbTools/new/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/apiSpec/new?filename=FluentDbTools_Extensions_DbProvider_DbProviderExtensions_GetConnectionStringProvider_FluentDbTools_Common_Abstractions_SupportedDatabaseTypes_.md&amp;value=---%0Auid%3A%20FluentDbTools.Extensions.DbProvider.DbProviderExtensions.GetConnectionStringProvider(FluentDbTools.Common.Abstractions.SupportedDatabaseTypes)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/DIPSAS/FluentDbTools/blob/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/src/FluentDbTools/Extensions/FluentDbTools.Extensions.DbProvider/DbProviderExtensions.cs/#L41">View Source</a>
  </span>
  <a id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_GetConnectionStringProvider_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.GetConnectionStringProvider*"></a>
  <h4 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_GetConnectionStringProvider_FluentDbTools_Common_Abstractions_SupportedDatabaseTypes_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.GetConnectionStringProvider(FluentDbTools.Common.Abstractions.SupportedDatabaseTypes)">GetConnectionStringProvider(SupportedDatabaseTypes)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IDbConnectionStringBuilder GetConnectionStringProvider(this SupportedDatabaseTypes dbType)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="FluentDbTools.Common.Abstractions.SupportedDatabaseTypes.html">SupportedDatabaseTypes</a></td>
        <td><span class="parametername">dbType</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="FluentDbTools.Common.Abstractions.IDbConnectionStringBuilder.html">IDbConnectionStringBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/DIPSAS/FluentDbTools/new/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/apiSpec/new?filename=FluentDbTools_Extensions_DbProvider_DbProviderExtensions_GetDbProviderFactory_FluentDbTools_Common_Abstractions_IDbConfig_System_Boolean_.md&amp;value=---%0Auid%3A%20FluentDbTools.Extensions.DbProvider.DbProviderExtensions.GetDbProviderFactory(FluentDbTools.Common.Abstractions.IDbConfig%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/DIPSAS/FluentDbTools/blob/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/src/FluentDbTools/Extensions/FluentDbTools.Extensions.DbProvider/DbProviderExtensions.cs/#L88">View Source</a>
  </span>
  <a id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_GetDbProviderFactory_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.GetDbProviderFactory*"></a>
  <h4 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_GetDbProviderFactory_FluentDbTools_Common_Abstractions_IDbConfig_System_Boolean_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.GetDbProviderFactory(FluentDbTools.Common.Abstractions.IDbConfig,System.Boolean)">GetDbProviderFactory(IDbConfig, Boolean)</h4>
  <div class="markdown level1 summary"><p>Return a new instance of DbProviderFactory created from dbConfig settings</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static DbProviderFactory GetDbProviderFactory(this IDbConfig dbConfig, bool withAdminPrivileges = false)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="FluentDbTools.Common.Abstractions.IDbConfig.html">IDbConfig</a></td>
        <td><span class="parametername">dbConfig</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
        <td><span class="parametername">withAdminPrivileges</span></td>
        <td><p>If true, a DbProviderFactory with AdminConnectionString is build</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.data.common.dbproviderfactory">DbProviderFactory</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/DIPSAS/FluentDbTools/new/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/apiSpec/new?filename=FluentDbTools_Extensions_DbProvider_DbProviderExtensions_Register_FluentDbTools_Common_Abstractions_IDbConnectionStringBuilder_System_Boolean_.md&amp;value=---%0Auid%3A%20FluentDbTools.Extensions.DbProvider.DbProviderExtensions.Register(FluentDbTools.Common.Abstractions.IDbConnectionStringBuilder%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/DIPSAS/FluentDbTools/blob/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/src/FluentDbTools/Extensions/FluentDbTools.Extensions.DbProvider/DbProviderExtensions.cs/#L133">View Source</a>
  </span>
  <a id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_Register_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.Register*"></a>
  <h4 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_Register_FluentDbTools_Common_Abstractions_IDbConnectionStringBuilder_System_Boolean_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.Register(FluentDbTools.Common.Abstractions.IDbConnectionStringBuilder,System.Boolean)">Register(IDbConnectionStringBuilder, Boolean)</h4>
  <div class="markdown level1 summary"><p>Add/Register dbConnectionStringBuilder to DbConnectionProviders</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IDbConnectionStringBuilder Register(this IDbConnectionStringBuilder dbConnectionStringBuilder, bool skipIfAlreadyRegistered = false)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="FluentDbTools.Common.Abstractions.IDbConnectionStringBuilder.html">IDbConnectionStringBuilder</a></td>
        <td><span class="parametername">dbConnectionStringBuilder</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
        <td><span class="parametername">skipIfAlreadyRegistered</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="FluentDbTools.Common.Abstractions.IDbConnectionStringBuilder.html">IDbConnectionStringBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/DIPSAS/FluentDbTools/new/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/apiSpec/new?filename=FluentDbTools_Extensions_DbProvider_DbProviderExtensions_Register_System_Data_Common_DbProviderFactory_FluentDbTools_Common_Abstractions_SupportedDatabaseTypes_System_Boolean_.md&amp;value=---%0Auid%3A%20FluentDbTools.Extensions.DbProvider.DbProviderExtensions.Register(System.Data.Common.DbProviderFactory%2CFluentDbTools.Common.Abstractions.SupportedDatabaseTypes%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/DIPSAS/FluentDbTools/blob/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/src/FluentDbTools/Extensions/FluentDbTools.Extensions.DbProvider/DbProviderExtensions.cs/#L151">View Source</a>
  </span>
  <a id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_Register_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.Register*"></a>
  <h4 id="FluentDbTools_Extensions_DbProvider_DbProviderExtensions_Register_System_Data_Common_DbProviderFactory_FluentDbTools_Common_Abstractions_SupportedDatabaseTypes_System_Boolean_" data-uid="FluentDbTools.Extensions.DbProvider.DbProviderExtensions.Register(System.Data.Common.DbProviderFactory,FluentDbTools.Common.Abstractions.SupportedDatabaseTypes,System.Boolean)">Register(DbProviderFactory, SupportedDatabaseTypes, Boolean)</h4>
  <div class="markdown level1 summary"><p>Add/Register dbProviderFactory to DbProviderFactories</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static DbProviderFactory Register(this DbProviderFactory dbProviderFactory, SupportedDatabaseTypes databaseType, bool skipIfAlreadyRegistered = false)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.data.common.dbproviderfactory">DbProviderFactory</a></td>
        <td><span class="parametername">dbProviderFactory</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="FluentDbTools.Common.Abstractions.SupportedDatabaseTypes.html">SupportedDatabaseTypes</a></td>
        <td><span class="parametername">databaseType</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
        <td><span class="parametername">skipIfAlreadyRegistered</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.data.common.dbproviderfactory">DbProviderFactory</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/DIPSAS/FluentDbTools/new/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/apiSpec/new?filename=FluentDbTools_Extensions_DbProvider_DbProviderExtensions.md&amp;value=---%0Auid%3A%20FluentDbTools.Extensions.DbProvider.DbProviderExtensions%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/DIPSAS/FluentDbTools/blob/854cee143dbb4017f4a63d3b6c9fa5c1ce1dce74/src/FluentDbTools/Extensions/FluentDbTools.Extensions.DbProvider/DbProviderExtensions.cs/#L14" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../../styles/docfx.js"></script>
    <script type="text/javascript" src="../../styles/main.js"></script>
  </body>
</html>
